package zero.tech.games.jh.work.queue;

import zero.tech.core.work.QueueWork;
import zero.tech.core.work.WorkQueue;
import zero.tech.games.logic.common.Room;
import zero.tech.games.logic.util.LogicUtil;

public class AfterGameOverCalculateQueueWork extends QueueWork{
	private Room room;
	@Override
	public void init(Object... objs) throws Exception {
		room=(Room) objs[0];
	}

	@Override
	public void run() {
		LogicUtil.freeRoom(room);
	}

	@Override
	public WorkQueue getWorkQueue() {
		return new WorkQueue() {
			
			@Override
			public long getId() {
				return room.getQueue_id();
			}
		};
	}

}
